Re: OpenGL stuff & 3D Studio ASC files


[ Follow Ups ] [ Post Followup ] [ Björn's 3D-World - Developer's Board ]

Posted by Stephen Edie from ts1113.slip.colostate.edu (129.82.192.17)on April 14, 1998 at 02:21:32:

In Reply to: OpenGL stuff & 3D Studio ASC files posted by Robert Santa on April 13, 1998 at 11:55:46:

Why don't vertex-arrays work? I'm pretty
sure that vertex-arrays allow you to specify
GL_TRIANGLE_STRIPs. I don't know 100% though as
I haven't used vertex-arrays yet. Display lists
could also work. You could put each individual
piece of the skeleton in a display list...Then,
use the MODELVIEW matrix stack to manipulate the
skeleton. For example, render "hand" and
"forearm" into display lists. Then, do something
like:

glPushMatrix();
glRotatef(/*elbow angle*/);
glCallList(BODYPART_FOREARM);
glPushMatrix();
glRotatef(/*wrist angle*/);
glCallList(BODYPART_HAND);
glPopMatrix();
glPopMatrix();

(Remember that the MODELVIEW matrix stack has 32
entries)

Other than that, glBegin(); -- glEnd();
won't slow things down too much. The
transformation, lighting, clipping, and
rasterizing will probably eat up much more CPU
time making the extra overhead hard to perceive.

Good luck...



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Björn's 3D-World - Developer's Board ]